<?php
	define("PORTAL_SESSION_NAME", "NAU1DNSVD561CǴ0912");	// Session name opened by Portal FIBRE
	session_start();
	
	if(isset($_SESSION[''.PORTAL_SESSION_NAME.''])){
		$username_session		=	"username";			// Name of the session variable that will store the user name logged
		$admin_session			=	"admin";			// Name of the session variable that will check if the user is admin or not (TRUE/FALSE) 
		$organization_session	=	"organization";		// Name of the session variable that will store the name of the institution of the logged in user based on LDAP (ex: o=ufg)
		
		$_SESSION[''.$username_session.'']		=	$_SESSION[''.PORTAL_SESSION_NAME.'']['username'];
		$_SESSION[''.$admin_session.'']			=	$_SESSION[''.PORTAL_SESSION_NAME.'']['admin'];
		$_SESSION[''.$organization_session.'']	=	$_SESSION[''.PORTAL_SESSION_NAME.'']['organization'];
	}
?>
